package com.mvp.shq.washer.ui.modifyMobile;

import com.mvp.shq.washer.base.BaseModel;
import com.mvp.shq.washer.base.BasePresenter;
import com.mvp.shq.washer.base.BaseView;
import com.mvp.shq.washer.entity.result.BaseResult;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2017/8/31.
 */

public interface ModifyMobileConstract {
    interface Model extends BaseModel{
        Observable<BaseResult<String>> code(String token,String mobile);
        Observable<BaseResult<String>> modify(String token,String userId,String oldPwd,String newMobile,String code);
    }
    interface View extends BaseView{
        void codeS();
        void codeF(String msg);
        void modifyS();
        void modifyF(String msg);
    }
    public abstract class Presenter extends BasePresenter<Model,View>{
        abstract void code(String mobile);
        abstract void modify(String oldPwd,String newMobile,String code);
    }
}
